import Mock from 'mockjs';


export default {
  //
    className: "product.model.Product",
    queryData: function(postData) {
        return Mock.mock({
            isSuccess: "Y",
            reason: "",
            message: [],
            "data": {
                "recordCount": 38,
                "pageCount": 1,
                "pageIndex": 1,
                "pageSize": 20,
                "queryResult|38": [{
                    "keyID|1000-9999": 1000,
                    "productCode": /^[0-9][0-9][0-9][0-9][0-9]$/,
                    "productName": Mock.mock('@ctitle'),
                    "productType": "产品类型1",
                    "tariffsType": Mock.mock('@ctitle'),
                    "productPrice": "网络",
                    "createTime": Mock.mock('@now'),
                    "status": "已上线",
                    "reportStatus": "未上报",
                    "version": 1,

                }]
            }
        });
    },
    queryByKeyID: function(postData) {
        return Mock.mock({
            isSuccess: "Y",
            reason: "",
            message: [],
            "data": {
              "keyID|1000-9999": 1000,
              "productCode": /^[0-9][0-9][0-9][0-9][0-9]$/,
              "productName": Mock.mock('@ctitle'),
              "productType": "产品类型1",
              "tariffsType": Mock.mock('@ctitle'),
              "productPrice": "网络",
              "createTime": Mock.mock('@now'),
              "status": "已上线",
              "reportStatus": "未上报",
               "version": 1,
            }
        });
    },
};
